<?php require_once('../connections/con_gl.php'); ?>
<?php
$getqueryremainderstnk = str_replace("+"," ",$_GET[query]);
mysql_select_db($database_con_gl, $con_gl);

$mulai = $_GET['mulai'];
$akhir = $_GET['akhir'];    
	
mysql_select_db($database_con_gl, $con_gl);
$query_dataremainderstnk = $getqueryremainderstnk;
$cekdataremainderstnk= mysql_query($query_dataremainderstnk, $con_gl) or die(mysql_error());
$row_dataremainderstnk = mysql_fetch_assoc($cekdataremainderstnk);
$totalRows_remainderstnk = mysql_num_rows($cekdataremainderstnk);

//printf($query_dataremainderstnk);
mysql_select_db($database_con_gl, $con_gl);
$query_getcompany = "SELECT * FROM gl_company WHERE id = 1";
$getcompany = mysql_query($query_getcompany, $con_gl) or die(mysql_error());
$row_getcompany = mysql_fetch_assoc($getcompany);
$totalRows_getcompany = mysql_num_rows($getcompany);
?>
<style type="text/css">
<!--
.style2 {font-size: 18px}
-->
</style>

<P align="center"><span class="style2"><strong>CIPAGANTI RENTAL CAR & TRAVEL</strong></span></P>
<P align="center" class="style2"><strong>REMAINDER JATUH TEMPO PAJAK STNK </strong></P>
<table width="100%" border="0" cellpadding="4" cellspacing="0" bordercolor="#000000">
  <tr>
</tr>
 <tr>
   <th width="200">CABANG : <?php echo $row_dataremainderstnk['gudang']; ?></th>
   <th width="78">&nbsp;</th>
    <th width="100">&nbsp;</th>
	<th width="80">&nbsp;</th>
	<th width="300">&nbsp;</th>
	<th width="300">&nbsp;</th>
	<th width="300">&nbsp;</th>
	<th width="300">&nbsp;</th>
	<th width="100">&nbsp;</th>
	<th width="100">&nbsp;</th>
	<th width="250">&nbsp; </th>    
    <th width="100" align="center"></th>
    <th width="100" align="center"></th>
    <th width="100" align="center"></th>
</table>
<table width="100%" border="1" cellpadding="4" cellspacing="0" bordercolor="#000000">
    <tr bgcolor="#CCCCCC">
      <th width="78"><strong>No</strong></th>
      <th width="100"><strong><strong>Jatuh Tempo</strong></strong></th>
      <th width="100">Merk</th>
      <th width="100">Tipe &amp; Tahun</th>
      <th width="100"><strong>No Polisi </strong></th>
    <th width="100">Kode Asset</th>
	<th width="80">No. Stnk</th>
	<th width="100" align="center"><strong>No BPKB</strong></th>
  </tr>
    <?php $i = 1;do { ?>
    <tr valign="top">
      <td align="left"><?php echo $i;?></td>
      <td align="left"><?php echo $row_dataremainderstnk['jthtempostnk'];?></td>
      <td align="left"><?php echo $row_dataremainderstnk['merk']; ?></td>
      <td align="left"><?php echo $row_dataremainderstnk['tipekendaraan']; ?> - <?php echo $row_dataremainderstnk['tahun']; ?></td>
      <td align="left"><?php echo $row_dataremainderstnk['nopolisi']; ?></td>
      <td align="left"><?php echo $row_dataremainderstnk['kodeasset']; ?></td>
      <td align="left"><?php echo $row_dataremainderstnk['nostnk']; ?></td>
      <td align="left"><?php echo $row_dataremainderstnk['nobpkb']; ?></td>
    </tr> 
  
		<?php 
			$i++;
        } while ($row_dataremainderstnk = mysql_fetch_assoc($cekdataremainderstnk)); ?>
		   
</table>
  
  
